package com.bqjr.xms.service.impl;

import java.util.List;

import com.bqjr.xms.dao.ServiceInfoDao;
import com.bqjr.xms.model.ServiceInfo;
import com.bqjr.xms.service.ServiceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ServiceInfoServiceImpl implements ServiceInfoService {
	
	@Autowired
	private ServiceInfoDao serviceInfoDao;

	@Override
	public void insert(ServiceInfo serviceInfo) {
		serviceInfoDao.insert(serviceInfo);
	}
	
	@Override
	public void update(ServiceInfo serviceInfo) {
		serviceInfoDao.update(serviceInfo);
	}

	@Override
	public boolean exist(String id) {
		return serviceInfoDao.exist("id", id);
	}
	
	public List<ServiceInfo> getAll() {
		return serviceInfoDao.getAll();
	}

}
